ea805b
@@ -354,7 +354,7 @@
public Partition alterPartition(final RawStore msdb, Warehouse wh, final String
           srcFs = wh.getFs(srcPath);
           destFs = wh.getFs(destPath);
           // check that src and dest are on the same file system
-          if (srcFs != destFs) {
+          if (!FileUtils.equalsFileSystem(srcFs, destFs)) {
             throw new InvalidOperationException("table new location " + destPath
               + " is on a different file system than the old location "
               + srcPath + ". This operation is not supported");
